import java.util.*;
public class max {
public static void main(String  [] args){
	List<String> arr1 =Arrays.asList("red","green","blue");
	System.out.println (Collections.max(arr1));
	System.out.println(Collections.min(arr1));
}
}
